home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
language
/
embedded
/
mcu
/
cluster.arc
/
AS_C.CHG
next >
Wrap
Text File
|
1989-05-24
|
3KB
|
81 lines
FILE: as_c.chg
PURPOSE: To document the changes made to AS.C to allow a semicolon to be
used as a comment character and to display number of assembly
errors found during the assembly.
DESCRIPTION:
Included in the archive file from which this file was extracted is the file
AS.C. This file has been modified from the original source downloaded from the
BBS. It has changes in 3 locations so that a semicolon will be allowed to
begin a comment line and also allows comments begun with a semicolon to begin
in any column.
I made these changes so that the ASxx.EXE assemblers will be able to assemble
files written for other assemblers without modifying the comment lines. This
was also done because the editor that I use has the capability to automatically
sidebar wrap my comments. This editor uses semicolons to begin the comment
column.
The AS.C file was also modified to display the number of errors found during
the assembly. This makes it easier to know if there were any errors when a
listing is being made. All that you need to do is go to the bottom of the
listing and find the line that tells how many errors there were. Most of the
programs that I write are over 2000 lines long. It is very tedious to search
through the listing for error lines.
See also the bug fix made to file FFWD.C described in the file FFWD_C.CHG,
and the change to OUTPUT.C that modifies the cross reference output and symbol
table output described in file OUTPUT_C.CHG.
If you have any questions for me, or if you would like me to upload the
complete source and executable files that include this change, I can be reached
at 801-778-4410. Ask for Bruce Olney.
DESCRIPTION OF CHANGES:
Line 83 was changed from this:
exit(Err_count);
To this:
printf("\n\nNumber of errors %d\n",Err_count);
exit(Err_count);
Line 162 was changed from this:
if((*ptrfrm == '*') || (*ptrfrm == '\n'))
return(0); /* a comment line */
To this:
if((*ptrfrm == '*') || (*ptrfrm == '\n') || (*ptrfrm == ';'))
return(0); /* a comment line */
Line 173 was changed from this:
while( delim(*ptrfrm) == NO)
*ptrto++ = mapdn(*ptrfrm++);
To this:
if(*ptrfrm != ';')
while( delim(*ptrfrm) == NO)
*ptrto++ = mapdn(*ptrfrm++);
Line 180 was changed from this:
while( *ptrfrm != NEWLINE )
*ptrto++ = *ptrfrm++;
To this:
if(*ptrfrm != ';')
while( *ptrfrm != NEWLINE )
*ptrto++ = *ptrfrm++;